<?php
$sub_menu = "700200";
include_once("./_common.php");
include_once ("./admin.head.php");
?>
<script src="http://openapi.map.naver.com/openapi/naverMap.naver?ver=2.0&key=77de4ca6328d2a037e70b1ced140c127"></script>

<?php
$sql = "select * from manage where id = '$id'";
$view = sql_fetch($sql);
//print_r2($view);

/*
$aa - manage에서 가져오는 지점명
$bb - $aa를 기준으로 지점번호 switch로 분기.
*/

$aa = $view['a_name1'];

switch($aa) {
	case "서래본점" :
		$bb = "00";
	break;
	case "경복궁점" :
		$bb = "01";
	break;
	case "서울파이넨스점" :
		$bb = "02";
	break;
	case "강남점" :
		$bb = "03";
	break;
	case "가로수길점" :
		$bb = "04";
	break;
	case "압구정점" :
		$bb = "05";
	break;
	case "강남파이넨스점" :
		$bb = "06";
	break;
	case "이태원점" :
		$bb = "07";
	break;
	case "상암점" :
		$bb = "08";
	break;
	case "아브뉴프랑판교점" :
		$bb = "09";
	break;
	case "부산일루아호텔점" :
		$bb = "10";
	break;
	case "여의도점" :
		$bb = "11";
	break;
	case "예술의전당점" :
		$bb = "12";
	break;
	case "합정메세나폴리스점" :
		$bb = "13";
	break;
	case "송도신도시점" :
		$bb = "14";
	break;
	case "서현AK점" :
		$bb = "15";
	break;
	case "의정부신세계점" :
		$bb = "16";
	break;
	case "울산업스퀘어점" :
		$bb = "17";
	break;
	case "도곡점" :
		$bb = "18";
	break;
	case "명동점" :
		$bb = "19";
	break;
	case "일산탄현점" :
		$bb = "20";
	break;
	case "대학로점" :
		$bb = "21";
	break;
}


$store_num = $bb;
$this_year = date("Y");
$sql2 = "SELECT		y{$this_year}
		 FROM		month_avg
		 WHERE		store_num = '$store_num'";
$rst2 = sql_query($sql2);
$view2 = mysql_fetch_assoc($rst2);
$this_str = $view2["y".$this_year];
$vi_month = explode("|", $this_str);
?>

<style>
div.input_wrap {width:700px;margin:0 auto;}
table.input_table {margin-top:20px;width:688px;border:1px solid #d9d9d9;}
table.input_table tr {height:36px;}
table.input_table th {background-color:#f9f9f7;border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9;text-align:left;padding-left:8px;font-weight:normal}
table.input_table td {padding-left:10px;border-top:1px solid #d9d9d9;}
div.input_btn {width:698px;text-align:center;margin-top:20px}

th.col3_line {border-left:1px solid #d9d9d9}
.blue_txt {color:#7289cd}

/*모달창 css*/
.modal-bg {position:fixed;width:100%;height:100%;background-color:#000;z-index: 5;display:none;top: 0;left: 0;opacity: 0;
filter: alpha(opacity=0);}
.modal-cont {position:fixed;top:50%;left:50%;z-index:6;display:none;padding:10px;background:#fff;}
.modal-cont-div {font-weight:bold;cursor:pointer;width:100%;text-align:center;font-size:16px;margin-bottom:3px;}
</style>
<!-- modal -->
<div class="modal-bg"></div>
<div class="modal-cont"><!--div class="close" style="font-weight:bold;text-align:right;cursor:pointer;font-size:16px;margin-bottom:3px;">X</div--><div class="modal-cont-div"></div></div>
<!-- modal -->
<div class="input_wrap">
	<br />
	<img src="./img_btn/manage_tit.jpg" style="display:block;width:185px;margin:0 auto;text-align:center"/>
	<table class="input_table" cellpadding="0" cellspacing="0" border="0">
	<colgroup>
	<col width="118px" />
	<col width="226px" />
	<col width="118px" />
	<col width="226px" />
	</colgroup>
	<tr>
	<th style="border-top:none;">지역선택</th>
	<td colspan="3" style="border-top:none;"><?php echo $view['a_area']?></td>
	</tr>
	<tr>
	<th>가맹점주소</th>
	<td colspan="3"><?php echo "(".$view['a_zip1']."-".$view['a_zip2'].") ".$view['a_addr1']." ".$view['a_addr2'] ?></td>
	</tr>
	<tr>
	<td colspan="4" style="padding:0">
		<div class="vc_map" id="vc_map">
		<script type="text/javascript">
		var y = <?php echo $view['s_map_x']?>;
		var x = <?php echo $view['s_map_y']?>;
		var z = <?php echo $view['s_zoom_level']?>;
		var oSeoulCityPoint = new nhn.api.map.LatLng(x, y);
		var defaultLevel = z;
		// [140102] 마커 안찍었을때 지도안나와서 mx,my 주석처리함.
		//var mx = <?php echo $view['s_point_x']?>;
		//var my = <?php echo $view['s_point_y']?>;
		//마커가 가진좌표가아니라 지도검색해서 위경도에 마커가 찍히는거 mx,my로찍으면 안되고 x,y로찍으면 됨
		var oPoint = new nhn.api.map.LatLng(x, y);
		nhn.api.map.setDefaultPoint('LatLng');

		var oMap = new nhn.api.map.Map(document.getElementById('vc_map'), {
										point : oSeoulCityPoint,
										zoom : 12, //defaultLevel,
										enableWheelZoom : true,
										enableDragPan : true,
										enableDblClickZoom : false,
										mapMode : 0,
										activateTrafficMap : false,
										activateBicycleMap : false,
										minMaxLevel : [ 1, 14 ],
										size : new nhn.api.map.Size(698, 480)           });

		var oSize = new nhn.api.map.Size(28, 37);
		var oOffset = new nhn.api.map.Size(14, 37);
		var oIcon = new nhn.api.map.Icon('http://static.naver.com/maps2/icons/pin_spot2.png', oSize, oOffset);

		var oInfoWnd = new nhn.api.map.InfoWindow();
		oInfoWnd.setVisible(false);
		oMap.addOverlay(oInfoWnd);

		oInfoWnd.setPosition({
			top : 20,
			left :20
		});


		var oMarker = new nhn.api.map.Marker(oIcon, {
											title : '<?php echo $view[a_name1]?>' });  //마커 생성
		oMarker.setPoint(oPoint);//oMarker.setPoint(128.5812724,35.8427067); //마커 표시할 좌표 선택
		oMap.addOverlay(oMarker); //마커를 지도위에 표현

		var oLabel = new nhn.api.map.MarkerLabel(); // - 마커 라벨 선언.
		oMap.addOverlay(oLabel); // - 마커 라벨 지도에 추가. 기본은 라벨이 보이지 않는 상태로 추가됨.

		oLabel.setVisible(true, oMarker); // 마커 라벨 보이기
		</script>
		</div>
	</td>
	</tr>
	<tr>
	<th>최초계약일</th>
	<td><?php echo $view['a_firstday']?></td>
	<th class="col3_line">가맹점 계약기간</th>
	<td><?php echo $view['a_years']?>년</td>
	</tr>
	<tr>
	<th>갱신계약일</th>
	<td colspan="3">
		<?php if($view['a_day1'] == "0000-00-00") {
			echo "없음";
		} else { ?>
			첫번째갱신일 : <?php echo $view['a_day1']?>&nbsp;&nbsp;&nbsp;
			두번째갱신일 : <?php echo $view['a_day2']?> <br />
			세번째갱신일 : <?php echo $view['a_day3']?>&nbsp;&nbsp;&nbsp;
			네번째갱신일 : <?php echo $view['a_day4']?> <br />
		<? } ?>
	</td>
	</tr>
	<tr>
	<th>개설일(오픈일)</th>
	<td colspan="3"><?php echo $view['a_openday']?></td>
	</tr>
	<tr>
	<th>가맹점명</th>
	<td colspan="3"><?php echo $view['a_name1']?></td>
	</tr>
	<tr>
	<th>점주명</th>
	<td><?php echo $view['a_name2']?></td>
	<th class="col3_line">점주이메일</th>
	<td><?php echo $view['a_email']?></td>
	</tr>
	<tr>
	<th>사업자번호</th>
	<td colspan="3"><?php echo $view['a_num1']."-".$view['a_num2']."-".$view['a_num3']?></td>
	</tr>
	<tr>
	<th>매장전화</th>
	<td><?php echo $view['a_tel']?></td>
	<th class="col3_line">핸드폰번호</th>
	<td><?php echo $view['a_hp']?></td>
	</tr>
	<tr>
	<th>월별매출<br />(<?php echo date("Y");?>년도)</th>
	<td colspan="3">
		<?php if($vi_month['0'] != "") { ?>
			1월 <?php echo $vi_month['0']?><br />
		<? } ?>
		<?php if($vi_month['1'] != "") { ?>
			2월 <?php echo $vi_month['1']?><br />
		<? } ?>
		<?php if($vi_month['2'] != "") { ?>
			3월 <?php echo $vi_month['2']?><br />
		<? } ?>
		<?php if($vi_month['3'] != "") { ?>
			4월 <?php echo $vi_month['3']?><br />
		<? } ?>
		<?php if($vi_month['4'] != "") { ?>
			5월 <?php echo $vi_month['4']?><br />
		<? } ?>
		<?php if($vi_month['5'] != "") { ?>
			6월 <?php echo $vi_month['5']?><br />
		<? } ?>
		<?php if($vi_month['6'] != "") { ?>
			7월 <?php echo $vi_month['6']?><br />
		<? } ?>
		<?php if($vi_month['7'] != "") { ?>
			8월 <?php echo $vi_month['7']?><br />
		<? } ?>
		<?php if($vi_month['8'] != "") { ?>
			9월 <?php echo $vi_month['8']?><br />
		<? } ?>
		<?php if($vi_month['9'] != "") { ?>
			10월 <?php echo $vi_month['9']?><br />
		<? } ?>
		<?php if($vi_month['10'] != "") { ?>
			11월 <?php echo $vi_month['10']?><br />
		<? } ?>
		<?php if($vi_month['11'] != "") { ?>
			12월 <?php echo $vi_month['11']?>
		<? } ?>
	</td>
	</tr>
	<tr>
	<th>계약만료일</th>
	<td colspan="3"><?php echo $view['a_endday']?></td>
	</tr>
	<tr>
	<th>100일전통보일</th>
	<td colspan="3"><?php echo $view['a_notiday']?></td>
	</tr>
	<tr>
	<th>양도양수여부</th>
	<td colspan="3">
		<?php if($view['a_transfer'] == "1") {
			echo "여";
		} else if ($view['a_transfer'] == "2") {
			echo "부";
		}?>
	</td>
	</tr>
	</table>

	<table cellpadding="0" cellspacing="0" border="0" style="width:688px">
	<tr style="height:41px">
	<td colspan="4" style="border-bottom:1px dashed #d9d9d9"></td>
	</tr>
	<tr style="height:20px">
	<td colspan="4"></td>
	</tr>
	<tr>
	<td colspan="4" style="background:url(/adm/adm_new/img_btn/tit_bg.gif) repeat-x;height:38px;color:white;padding-left:10px;font-weight:bold;">기타지출내역</td>
	</tr>
	</table>

	<table class="input_table" cellpadding="0" cellspacing="0" border="0">
	<colgroup>
	<col width="118px" />
	<col width="226px" />
	<col width="118px" />
	<col width="226px" />
	</colgroup>
	<tr>
	<th style="border-top:none">가맹비</th>
	<td colspan="3" style="border-top:none"><?php echo $view['a_g_cost']?> 원</td>
	</tr>
	<tr>
	<th>교육비</th>
	<td colspan="3"><?php echo $view['a_edu_cost']?> 원<br />
		<span class="blue_txt">세부지출내역</span>
		<?php echo $view['a_edu_detail']?>
	</td>
	</tr>
	<tr>
	<th>교육인원</th>
	<td><?php echo $view['a_edu_num']?> 명</td>
	<th class="col3_line">교육이수 시간</th>
	<td><?php echo $view['a_edu_time']?> 시간</td>
	</tr>
	<tr>
	<th>이행보증금</th>
	<td colspan="3"><?php echo $view['a_b_cost']?> 원</td>
	</tr>
	<tr>
	<th>홍보비</th>
	<td colspan="3"><?php echo $view['a_h_cost']?> 원<br />
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_h_detail']?>
	</td>
	</tr>
	<tr>
	<th rowspan="2">인테리어</th>
	<td>
		<?php echo $view['a_i_cost']?> 원<br />
		<span class="blue_txt">업체명 : </span><?php echo $view['a_i_name']?>
	</td>
	<td colspan="2">
		<?php if($view['a_i_r'] == "1") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 여";
		} else if ($view['a_i_r'] == "2") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 부";
		} else if ($view['a_i_r'] == "3") {
			echo "<span class='blue_txt' style=''>본사진행</span>";
		}?><br />
		<span class="blue_txt">연락처 : </span><?php echo $view['a_i_tel']?>
	</td>
	</tr>
	<tr>
	<td colspan="3">
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_i_detail']?>
	</td>
	</tr>
	<tr>
	<th rowspan="2">간판</th>
	<td>
		<?php echo $view['a_p_cost']?> 원<br />
		<span class="blue_txt">업체명 : </span><?php echo $view['a_p_name']?>
	</td>
	<td colspan="2">
		<?php if($view['a_p_r'] == "1") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 여";
		} else if ($view['a_p_r'] == "2") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 부";
		} else if ($view['a_p_r'] == "3") {
			echo "<span class='blue_txt'>본사진행</span>";
		}?><br />
		<span class="blue_txt">연락처 : </span><?php echo $view['a_p_tel']?>
	</td>
	</tr>
	<tr>
	<td colspan="3">
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_p_detail']?>

	</td>
	</tr>
	<tr>
	<th rowspan="2">주방집기</th>
	<td>
		<?php echo $view['a_j_cost']?> 원<br />
		<span class="blue_txt">업체명 : </span><?php echo $view['a_j_name']?>
	</td>
	<td colspan="2">
		<?php if($view['a_j_r'] == "1") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 여";
		} else if ($view['a_j_r'] == "2") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 부";
		} else if ($view['a_j_r'] == "3") {
			echo "<span class='blue_txt'>본사진행</span>";
		}?><br />
		<span class="blue_txt">연락처 : </span><?php echo $view['a_j_tel']?>
	</td>
	</tr>
	<tr>
	<td colspan="3">
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_j_detail']?><br />
	</td>
	</tr>
	<tr>
	<th rowspan="2">홀설비</th>
	<td>
		<?php echo $view['a_s_cost']?> 원<br />
		<span class="blue_txt">업체명 : </span><?php echo $view['a_s_name']?>
	</td>
	<td colspan="2">
		<?php if($view['a_s_r'] == "1") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 여";
		} else if ($view['a_s_r'] == "2") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 부";
		} else if ($view['a_s_r'] == "3") {
			echo "<span class='blue_txt'>본사진행</span>";
		}?><br />
		<span class="blue_txt">연락처 : </span><?php echo $view['a_s_tel']?>
	</td>
	</tr>
	<tr>
	<td colspan="3">
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_s_detail']?><br />
	</td>
	</tr>
	<tr>
	<th rowspan="2">초도물품</th>
	<td>
		<?php echo $view['a_m_cost']?> 원<br />
		<span class="blue_txt">업체명 : </span><?php echo $view['a_m_name']?>
	</td>
	<td colspan="2">
		<?php if($view['a_m_r'] == "1") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 여";
		} else if ($view['a_m_r'] == "2") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 부";
		} else if ($view['a_m_r'] == "3") {
			echo "<span class='blue_txt'>본사진행</span>";
		}?><br />
		<span class="blue_txt">연락처 : </span><?php echo $view['a_m_tel']?>
	</td>
	</tr>
	<tr>
	<td colspan="3">
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_m_detail']?><br />
	</td>
	</tr>
	<tr>
	<th rowspan="2">초도식자재</th>
	<td>
		<?php echo $view['a_c_cost']?> 원<br />
		<span class="blue_txt">업체명 : </span><?php echo $view['a_c_name']?>
	</td>
	<td colspan="2">
		<?php if($view['a_c_r'] == "1") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 여";
		} else if ($view['a_c_r'] == "2") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 부";
		} else if ($view['a_c_r'] == "3") {
			echo "<span class='blue_txt'>본사진행</span>";
		}?><br />
		<span class="blue_txt">연락처 : </span><?php echo $view['a_c_tel']?>
	</td>
	</tr>
	<tr>
	<td colspan="3">
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_c_detail']?><br />
	</td>
	</tr>
	<tr>
	<th rowspan="2">포스</th>
	<td>
		<?php echo $view['a_f_cost']?> 원<br />
		<span class="blue_txt">업체명 : </span><?php echo $view['a_f_name']?>
	</td>
	<td colspan="2">
		<?php if($view['a_f_r'] == "1") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 여";
		} else if ($view['a_f_r'] == "2") {
			echo "<span class='blue_txt'>가맹점주직접진행 :</span> 부";
		} else if ($view['a_f_r'] == "3") {
			echo "<span class='blue_txt'>본사진행</span>";
		}?><br />
		<span class="blue_txt">연락처 : </span><?php echo $view['a_f_tel']?>
	</td>
	</tr>
	<tr>
	<td colspan="3">
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_f_detail']?><br />
	</td>
	</tr>
	<tr>
	<th>기타비용</th>
	<td colspan="3">
		<?php echo $view['a_etc_cost']?> 원<br />
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_etc_detail']?>
	</td>
	</tr>
	<tr>
	<th>본사지원금액</th>
	<td colspan="3">
		<?php echo $view['a_supp_cost']?> 원<br />
		<span class="blue_txt">세부지출내역</span><br />
		- <?php echo $view['a_supp_detail']?>
	</td>
	</tr>
	</table>

	<table cellpadding="0" cellspacing="0" border="0" style="width:688px">
	<tr style="height:41px">
	<td colspan="4" style="border-bottom:1px dashed #d9d9d9"></td>
	</tr>
	</table>

	<table class="input_table" cellpadding="0" cellspacing="0" border="0">
	<colgroup>
	<col width="118px" />
	<col width="226px" />
	<col width="118px" />
	<col width="226px" />
	</colgroup>
	<tr>
	<th style="border-top:none">문서 파일 첨부</th>
	<td colspan="3" style="border-top:none">
		<?php
		if($view['m_file0'] != "") {
			$m0 = explode("/", $view['m_file0']);
			$mt0 = array_pop($m0);
		}
		if($view['m_file1'] != "") {
			$m1 = explode("/", $view['m_file1']);
			$mt1 = array_pop($m1);
		}
		if($view['m_file2'] != "") {
			$m2 = explode("/", $view['m_file2']);
			$mt2 = array_pop($m2);
		}
		?>
		<?php if($mt0 != "") { ?>
		<a href="./download.php?a=<?php echo urlencode($mt0)?>"><span class="blue_txt"><?php echo $mt0;?></span></a><br />
		<? } ?>
		<?php if($mt1 != "") { ?>
		<a href="./download.php?a=<?php echo urlencode($mt1)?>"><span class="blue_txt"><?php echo $mt1;?></span></a><br />
		<? } ?>
		<?php if($mt2 != "") { ?>
		<a href="./download.php?a=<?php echo urlencode($mt2)?>"><span class="blue_txt"><?php echo $mt2;?></span></a>
		<? } ?>
	</td>
	</tr>
	<tr>
	<th>이미지 파일 첨부</th>
	<td colspan="3" style="padding:0;padding-left:10px;padding-top:6px">

		<?php if($view['i_file0'] != "") { ?>
		<img src="<?php echo $view['i_file0']?>" style="width:200px;cursor:pointer" onclick="modal_on('<?php echo $view['i_file0']?>','800','600');" /><br/>
		<? } ?>
		<?php if($view['i_file1'] != "") { ?>
		<img src="<?php echo $view['i_file1']?>" style="width:200px;cursor:pointer" onclick="modal_on('<?php echo $view['i_file1']?>','800','600');" /><br/>
		<? } ?>
		<?php if($view['i_file2'] != "") { ?>
		<img src="<?php echo $view['i_file2']?>" style="width:200px;cursor:pointer" onclick="modal_on('<?php echo $view['i_file2']?>','800','600');" />
		<? } ?>
	</td>
	</tr>
	<tr>
	<th>기타내용</th>
	<td colspan="3" class="td_last"><?php echo nl2br($view['a_content']);?></td>
	</tr>
	</table>
	<div class="input_btn">
		<?php// echo date("Y-m-d")."<br/>".$view['a_notiday'];?>
		<?php
		//if(date("Y-m-d") == $view['a_notiday']) { ?>
		<img src="./img_btn/mail_btn.gif" class="m_btn" style="cursor:pointer" />
		<?// } ?>
		<img src="./img_btn/update_btn.gif" class="u_btn" style="cursor:pointer" />
		<img src="./img_btn/delete_btn.gif" class="d_btn" style="cursor:pointer" />
		<img src="./img_btn/list_btn.gif" class="list_btn" style="cursor:pointer" />
	</div>
</div>



<script>
function modal_on(src,width,height) {
	var max_height = height;
	var max_width = width;
	//var max_height = Math.ceil( ( 320 / width ) * height );/*★★★*/
	$(".modal-bg").css('display','block');
	$(".modal-bg").animate({opacity:"0.7"},700);
	//$(".modal-cont .modal-cont-div").html("<img src="+src+">");
	//$(".modal-cont .modal-cont-div").html("<img src="+src+" style='width:100%;height:100%'>");
	$(".modal-cont .modal-cont-div").html("<img src="+src+" style='width:" + max_width + "px;height:" + max_height +"px;'>");
	$(".modal-cont").animate({marginLeft:"-"+max_width/2,marginTop:"-"+max_height/2});
	$(".modal-cont").fadeIn();
}
	$(".modal-bg").click(function() {
	$(".modal-bg").animate({opacity:"0"},700, function() {
	$(".modal-bg").css('display','none');
	});
	$(".modal-cont").fadeOut();
	});
	$(".modal-cont").click(function() {
	$(".modal-bg").animate({opacity:"0"},700, function() {
	$(".modal-bg").css('display','none');
	});
	$(".modal-cont").fadeOut();
});
</script>



<script>
$(".m_btn").click(function() {
	location.href = "./mail.php?adr=<?php echo $view['a_email']?>&url0=<?php echo urlencode($mt0);?>&url1=<?php echo urlencode($mt1);?>&url2=<?php echo urlencode($mt2);?>";
});

$(".u_btn").click(function() {
	location.href = "./manage_insert.php?bo_table=manage&w=u&id=<?php echo $view['id']?>";
});
$(".d_btn").click(function() {
	/*
	function cede(num){
		var x = confirm("삭제하시겠습니까?");
		if(x == true){
			location.href = "y_price_update.php?w=d&id=" + num;
		} else {
			location.href = "y_price_list.php";
		}
	}
	*/
	var x = confirm("삭제하시겠습니까?");
	if(x == true){
		location.replace("./manage_update.php?w=d&id=<?php echo $view['id']?>");
	}
	//location.replace("./manage_update.php?w=d&id=<?php echo $view['id']?>");
});
$(".list_btn").click(function() {
	location.href = "./manage.php?bo_table=manage";
});
</script>
<?php include_once("$g4[path]/tail.sub.php");?>